package com.mvc.controller;

import com.common.core.BaseController;
import com.jfinal.kit.JsonKit;
import com.mvc.model.Style;
import com.mvc.request.ReqStylePage;
import com.mvc.request.ReturnData;
import com.mvc.response.RspPage;
import com.mvc.service.StyleService;
import com.mvc.service.impl.StyleServiceImpl;

/***
 * 风格
 * 
 * @author Administrator
 * 
 */
public class StyleController extends BaseController {

	StyleService sysService = new StyleServiceImpl();

	// 获取风格【大厅，祭拜大厅】
	public void queryStylePage() {
		ReqStylePage req =  getRequestObject(ReqStylePage.class);
		ReturnData<RspPage<Style>> data = sysService.queryPage(req);
		renderJson(JsonKit.toJson(data));
	}

}